package com.kclm.xsap.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kclm.xsap.dao.ConsumeRecordDao;
import com.kclm.xsap.dao.RechargeRecordDao;
import com.kclm.xsap.entity.ConsumeRecordEntity;
import com.kclm.xsap.entity.RechargeRecordEntity;
import com.kclm.xsap.service.ConsumeRecordService;
import com.kclm.xsap.service.RechargeRecordService;
import com.kclm.xsap.utils.R;
import com.kclm.xsap.vo.statistics.CardCostVo;
import com.kclm.xsap.vo.statistics.StatisticsOfCardCostVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.swing.plaf.IconUIResource;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;

@Service
public class ConsumeRecordServiceImpl extends ServiceImpl<ConsumeRecordDao, ConsumeRecordEntity> implements ConsumeRecordService {


    @Override
    public String[] selectById(Integer id) {
        return baseMapper.selectId(id);
    }

    @Override
    public String getCardName(Long memberBindId) {
        return baseMapper.selectCardName(memberBindId);
    }

    @Override
    public int getValid(Long memberBindId) {
        return baseMapper.selectValid(memberBindId);
    }

}
